package com.java.entity;

import java.io.Serializable;

public class Function implements Serializable {
    private Integer funcId;

    private String funcName;

    private String funcUrl;

    private String funcCode;

    private static final long serialVersionUID = 1L;

    public Integer getFuncId() {
        return funcId;
    }

    public void setFuncId(Integer funcId) {
        this.funcId = funcId;
    }

    public String getFuncName() {
        return funcName;
    }

    public void setFuncName(String funcName) {
        this.funcName = funcName == null ? null : funcName.trim();
    }

    public String getFuncUrl() {
        return funcUrl;
    }

    public void setFuncUrl(String funcUrl) {
        this.funcUrl = funcUrl == null ? null : funcUrl.trim();
    }

    public String getFuncCode() {
        return funcCode;
    }

    public void setFuncCode(String funcCode) {
        this.funcCode = funcCode == null ? null : funcCode.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Function other = (Function) that;
        return (this.getFuncId() == null ? other.getFuncId() == null : this.getFuncId().equals(other.getFuncId()))
            && (this.getFuncName() == null ? other.getFuncName() == null : this.getFuncName().equals(other.getFuncName()))
            && (this.getFuncUrl() == null ? other.getFuncUrl() == null : this.getFuncUrl().equals(other.getFuncUrl()))
            && (this.getFuncCode() == null ? other.getFuncCode() == null : this.getFuncCode().equals(other.getFuncCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFuncId() == null) ? 0 : getFuncId().hashCode());
        result = prime * result + ((getFuncName() == null) ? 0 : getFuncName().hashCode());
        result = prime * result + ((getFuncUrl() == null) ? 0 : getFuncUrl().hashCode());
        result = prime * result + ((getFuncCode() == null) ? 0 : getFuncCode().hashCode());
        return result;
    }
}